package com.ruoyi.profession.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 工作履历对象 work_experience
 * 
 * @author 靳双伟
 * @date 2024-06-02
 */
public class WorkExperience extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 职业信息ID（外键） */
    @Excel(name = "职业信息ID", readConverterExp = "外=键")
    private Long careerInfoId;

    /** 起止时间-开始 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "起止时间-开始", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 起止时间-结束 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "起止时间-结束", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 单位 */
    @Excel(name = "单位")
    private String workUnit;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCareerInfoId(Long careerInfoId) 
    {
        this.careerInfoId = careerInfoId;
    }

    public Long getCareerInfoId() 
    {
        return careerInfoId;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setWorkUnit(String workUnit) 
    {
        this.workUnit = workUnit;
    }

    public String getWorkUnit() 
    {
        return workUnit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("careerInfoId", getCareerInfoId())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("workUnit", getWorkUnit())
            .toString();
    }
}
